package router

import (
	"github.com/gin-gonic/gin"
	"project-im/config"
	"project-im/internal/api/user"
	"project-im/tools"
)

func Upload(router *gin.RouterGroup) {
	upload := router.Group("image").Use(tools.JWTAuth(config.AppConfig.Jwt.Key))
	{
		upload.POST("upload", user.Upload)
	}
}
